package com.njym.java.security.app.biz;

import com.njym.java.security.app.entity.FamilySlideshow;
import com.njym.java.security.app.mapper.FamilySlideshowMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-13 13:46:55
 */
@Service
public class FamilySlideshowBiz extends BaseBiz<FamilySlideshowMapper,FamilySlideshow> {

//	@Cache(key = "getSlide:{1}",expire = 120)
	public List<FamilySlideshow> getSlide(String name) {
//		Example example = new Example(FamilySlideshow.class);
//		example.createCriteria().andEqualTo("status",1).andEqualTo("name",name).andEqualTo("deleted",0);
//		return selectByExample(example);
		return mapper.getSlide(name);
	}

	public List<FamilySlideshow> getGuidingImages() {
		return mapper.getGuidingImages();
	}
}